home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
0159
/
vb.zip
/
SECAPTIO.FRM
< prev
next >
Wrap
Text File
|
1995-12-30
|
12KB
|
387 lines
VERSION 2.00
Begin Form CaptionDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Caption Properties Demo"
ClientHeight = 3300
ClientLeft = 2535
ClientTop = 2670
ClientWidth = 7665
Height = 3705
Left = 2475
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 3300
ScaleWidth = 7665
Top = 2325
Width = 7785
Begin SSFrame Frame3D1
Caption = "CaptionColor"
Height = 1095
Left = 4860
TabIndex = 8
Top = 60
Width = 2175
Begin Label Colors
BackColor = &H00000000&
Height = 240
Index = 0
Left = 540
TabIndex = 9
Top = 360
Width = 240
End
Begin Label Colors
BackColor = &H00808080&
Height = 240
Index = 1
Left = 540
TabIndex = 10
Top = 630
Width = 240
End
Begin Label Colors
BackColor = &H00FFFFFF&
Height = 240
Index = 2
Left = 780
TabIndex = 11
Top = 360
Width = 240
End
Begin Label Colors
BackColor = &H000000FF&
Height = 240
Index = 3
Left = 780
TabIndex = 14
Top = 630
Width = 240
End
Begin Label Colors
BackColor = &H0000FF00&
Height = 240
Index = 4
Left = 1020
TabIndex = 15
Top = 360
Width = 240
End
Begin Label Colors
BackColor = &H0000FFFF&
Height = 240
Index = 5
Left = 1020
TabIndex = 16
Top = 630
Width = 240
End
Begin Label Colors
BackColor = &H00FF0000&
Height = 240
Index = 6
Left = 1260
TabIndex = 17
Top = 360
Width = 240
End
Begin Label Colors
BackColor = &H00FF00FF&
Height = 240
Index = 7
Left = 1260
TabIndex = 18
Top = 630
Width = 240
End
Begin Label Colors
BackColor = &H000080FF&
Height = 240
Index = 8
Left = 1500
TabIndex = 19
Top = 360
Width = 240
End
Begin Label Colors
BackColor = &H00004040&
Height = 240
Index = 9
Left = 1500
TabIndex = 20
Top = 630
Width = 240
End
End
Begin HScrollBar HScroll1
Height = 225
Index = 1
Left = 4200
Max = 140
Min = -140
TabIndex = 23
Top = 1860
Width = 2865
End
Begin TextBox Text1
Height = 315
Left = 4200
TabIndex = 0
Text = " "
Top = 2520
Width = 2895
End
Begin HScrollBar HScroll1
Height = 225
Index = 0
Left = 4200
Max = 140
Min = -140
TabIndex = 5
Top = 1590
Width = 2865
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "Caption ID"
Height = 1095
Left = 3450
TabIndex = 1
Top = 60
Width = 1215
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "2"
Height = 255
Index = 2
Left = 360
TabIndex = 4
TabStop = 0 'False
Top = 720
Width = 615
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "1"
Height = 255
Index = 1
Left = 360
TabIndex = 3
TabStop = 0 'False
Top = 480
Width = 615
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "0"
Height = 255
Index = 0
Left = 360
TabIndex = 2
Top = 240
Value = -1 'True
Width = 615
End
End
Begin SELECTOR Selector1
Angle = 330
AutoAlign = -1 'True
AutoAngle = -1 'True
AutoAngleConfine= 0 'False
AutoOffset = -1 'True
AutoOffsetDistance= 0.6
AutoOffsetStyle = 1 ' 1 - Horizontal
AutoRadius = 0.6
AutoStartAngle = 210
AutoStopAngle = 330
AVersion = 0
BackgroundColor = &H00C0C0C0&
BevelInner = 0 ' 0 - None
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderType = 1 ' 1 - Bevel
BorderWidth = 2
FontID = 0
FrameColor = &H00C0C0C0&
FrameScaleX = 1.1
FrameScaleY = 1.1
FrameStyle = 0 ' 0 - None
Height = 2940
Highlight = -1 'True
HighlightColor = &H00008000&
KnobColor = &H00C00000&
KnobOriginX = 0.3
KnobOriginY = 0
KnobRadius = 0.3
KnobStyle = 1 ' 1 - Pointer
KnobUserDefined = ""
Left = 150
LineDisplay = -1 'True
LineInnerRadius = 0.35
LineThickness = 2
MarkUserDefined = ""
MouseControl = -1 'True
OutlineAlign = 0 ' 0 - Left
OutlineColor = &H00000000&
OutlineTitle = ""
OutlineWidth = 0
Radius = 0
TabIndex = 22
TabStop = 0 'False
Top = 150
Value = 4
Width = 2910
XScale = 0
YScale = 0
ZLoad = SECAPTIO.FRX:0000
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 1
Left = 7080
TabIndex = 21
Top = 1890
Width = 330
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "CaptionY:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 1
Left = 3480
TabIndex = 24
Top = 1890
Width = 690
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Caption :"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 2
Left = 3540
TabIndex = 13
Top = 2550
Width = 630
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 2
Left = 5325
TabIndex = 12
Top = 2730
Width = 90
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "CaptionX:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 0
Left = 3480
TabIndex = 6
Top = 1620
Width = 690
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 0
Left = 7080
TabIndex = 7
Top = 1620
Width = 330
End
End
Sub Colors_Click (index As Integer)
Selector1.CaptionColor = colors(index).BackColor
End Sub
Sub Form_Load ()
hscroll1(0) = Selector1.CaptionX * 100
hscroll1(1) = Selector1.CaptionY * 100
label2(0) = Selector1.CaptionX
label2(1) = Selector1.CaptionY
text1 = Selector1.Caption
End Sub
Sub HScroll1_Change (index As Integer)
Select Case index
Case 0
Selector1.CaptionX = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
Selector1.CaptionY = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
End Select
End Sub
Sub HScroll1_Scroll (index As Integer)
Select Case index
Case 0
Selector1.CaptionX = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
Selector1.CaptionY = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
End Select
End Sub
Sub Option1_Click (index As Integer)
Selector1.CaptionID = index
hscroll1(0) = Selector1.CaptionX * 100
hscroll1(1) = Selector1.CaptionY * 100
text1 = Selector1.Caption
End Sub
Sub Text1_Change ()
Selector1.Caption = text1
End Sub